<?  #coding: utf-8 æ ø å ?
//print_r($stamdata);

if(!empty($stamdata['birth'])) {
$birth = $this->tid_model->tid_navn($stamdata['birth']);
}
else { $birth = "Ukendt"; }

if(!empty($stamdata['death'])) {
$death = $this->tid_model->tid_navn($stamdata['death']);
}
else { $death = "Ikke endnu"; }


if(isset($element_content['player_character'])) { $rollespiller = "element/type/player_character"; }
else {$rollespiller = "includes/fejl/tom";}

if(isset($element_content['kampagne'])) { $kampagne = "element/type/kampagne";}
else {$kampagne = "includes/fejl/tom";}

if(isset($element_content['session'])) { $session = "element/type/session";}
else {$session = "includes/fejl/tom";}

if(isset($element_content['individ'])) { $individ = "element/content_by_variable/individ"; }
else {$individ = "includes/fejl/tom";}

if(isset($element_content['begivenhed'])) { $begivenhed = "element/content_by_variable/begivenhed_steder"; }
else {$begivenhed = "includes/fejl/tom";}


if(in_array($id,$redEle)) {
	$element_manchet =  "<p style='line-height:16px;margin:10px 0 0 0;' class='ink editable'><b class='rubrik'>Birth:</b> ".$birth.
						" <span class='rediger_holder' style='display:none;'>".anchor("almanak/side/".$id."/rediger_birth"," ","class='rediger'")."</span>
						</p><p style='line-height:16px;' class='ink editable'>
						<b class='rubrik'>Death:</b> ".$death."
						<span class='rediger_holder' style='display:none;'>".anchor("almanak/side/".$id."/rediger_death"," ","class='rediger'")."</span></p>";
}
else {
	$element_manchet = "<p class='rubrik' style='line-height:16px;'><b>Birth:</b> ".$birth."<br><b>Death:</b> ".$death."</p>";
}


$stam_data = array(	'overskrift' => $navne[0],
					'skjul_drop' => TRUE,
					'overskrift_type' => "h1",
					'rediger_url' => "rediger_navn",
					'manchet_type' => 'ink',
					'manchet_tekst' => $element_manchet,
					'content_headline' => "",
					'content_left' => array($rollespiller,$individ,$kampagne,$session,$begivenhed),
					'content_right' => "element_rettigheds_data"
				);


 $this->load->view("includes/manchet_tospaltet",$stam_data); ?>
